<template>
  <div>==={{count}}
    son2==={{modelValue}}
    <br>
     <input  type="button" @click="add" value="btn"/>
  </div>
</template>

<script>
import mixin  from  '../mixins'
export default {
  data(){
    return {
      count:2222
    }
  },

  mixins:[mixin],
   props: {
     //  v2:value   v3:modelValue [关键字]
    modelValue: {
      type: Number,
      default: 0
    }
  },
  setup (props,{emit}) {
    const ss = () => {
    //  console.log(props.modelValue,7);
     emit('update:modelValue',20)
    }

    return {ss}
  }
}
</script>

<style lang="scss" scoped>

</style>